#pragma once
#include "UtilDefs.h"
#include "DirectoryUtil.h"
#include <string>
#define MAX(a,b) ((a) > (b) ? a : b)
#define MIN(a,b) ((a) < (b) ? a : b)
class UtilityFunction
{
public:
	UtilityFunction(){}
	~UtilityFunction(){}
	static std::string wstrtostr(const std::wstring &wstr);
	static std::wstring strtowstr(const std::string &str);
	static bool ListAllFilesInFolder(TCHAR* strDir, TCHAR* strFileNamePattern, CGrowableArray<std::wstring>& FileNameArr);
	// MC Function Definitions
	static void ComputeStep1dCDF(float *f, int nSteps, float *c, float *cdf);
};